package com.guigusuqi.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigusuqi.app.entity.MedicalCard;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author suqi
 * @since 2022-04-06
 */
public interface MedicalCardMapper extends BaseMapper<MedicalCard>
{



    /**
     * 绑定就诊卡
     * @param openid
     * @param medicalCardId
     * @return
     */
    int saveUserAndCard(String openid, Long medicalCardId);

    /**
     * 通过openid获取就诊卡list
     * @param openid
     * @return
     */
    List<MedicalCard> findUserMedicalCardByOpenid(String openid);
}
